Method: HTTP::Message::Headers#[]
- Defined in:
- lib/httpclient/http.rb
#[](key) ⇒ Object
Returns an Array of header values for the given key.
323 324 325 |
# File 'lib/httpclient/http.rb', line 323 def [](key) get(key).collect { |item| item[1] } end |